<template>
    <div>
        <div v-if="this.shop_cookie != null">
            <shoppage></shoppage>
        </div>
        <div v-else>
            <loginfirst></loginfirst>
        </div>
    </div>
</template>

<script>
import loginfirst from '../components/loginfirst.vue';
import Shoppage from '../components/shoppage.vue';

export default {
  components: { loginfirst, Shoppage },
    name: "shop",
    data() {
      return {
        shop_cookie:'',
      }
    },
    mounted(){
        this.shop_cookie = this.$cookies.get("shopname");
    }
}
</script>

<style scoped>
</style>